BEGIN 	{count = 0}

/^Input sequences:$/, /^$/ {
	if ($1 ~ /#[0-9]+/) {count++}
}

END 		{print count}
